﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

   public class CustomerTransactionsBAL
    {
       private CustomerTransactionsDAL _CustomerTransactionsDAL;


       public CustomerTransactionsBAL() : this(new CustomerTransactionsDAL()) { }
       public CustomerTransactionsBAL(CustomerTransactionsDAL CustomerTransactionsDAL) { _CustomerTransactionsDAL = CustomerTransactionsDAL; }

    public DataTable CustomerTransactionTable(CustomerTransactionsBO Customer)
    {
        

        try
        {

            return _CustomerTransactionsDAL.Load(Customer);

        }

        catch
        {

            throw;

        }

        finally
        {

            _CustomerTransactionsDAL = null;

        }

    }
    public DataTable CustomerTransactionDebitTable(CustomerTransactionsBO CustomerDebit)
    {


        try
        {

            return _CustomerTransactionsDAL.LoadDebit(CustomerDebit);

        }

        catch
        {

            throw;

        }

        finally
        {

            _CustomerTransactionsDAL = null;

        }

    }
    
    }

